package com.hk.service.impl;

import org.springframework.stereotype.Service;

import com.hk.commons.LongId;
import com.hk.commons.entity.User;
import com.hk.dao.base.impl.BaseServiceImpl;
import com.hk.service.IUser;


@Service
public class UserImpl extends BaseServiceImpl<User> implements IUser {

	@Override
	public User findById(long id) {
		
		return getById(id);
	}

	@Override
	public Long add(User model) {
		long id = LongId.get();
		model.setId(id);
		super.save(model);
		return id;
	}
	



}
